package com.design.decorate;

/**
 * @author zhengzihong
 * @version 1.0.0
 * @date 2018/9/10
 * @Description
 */
public class Soy extends Condiment {

    Beverage beverage;

    public Soy(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription() + " add soy";
    }

    @Override
    public double cost() {
        return beverage.cost() + 0.5;
    }
}
